<template>
  <div id="app">
    <el-container>
      <el-header>
        <head-box></head-box>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu default-active="/bpHistoricalData" class="el-menu-vertical-demo" router>
            <el-menu-item index="/bpHistoricalData">
              <i class="el-icon-menu"></i>
              <span slot="title">血压历史数据</span>
            </el-menu-item>
            <el-menu-item index="/bgHistoricalData">
              <i class="el-icon-setting"></i>
              <span slot="title">血糖历史数据</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script>
import BpHistoricalData from './views/BpHistoricalData'
import HeadBox from './components/HeadBox'

export default {
  components: { HeadBox, BpHistoricalData },
}
</script>
<style>
body {
  margin: 0;
  padding: 0;
}
header.el-header {
  padding: 0;
}
aside.el-aside {
  border-right: 1px solid #ccc;
  margin-top: 25px;
  height: calc(100vh - 85px);
}
</style>
